package com.wmz.crm.workbench.mapper;

import com.wmz.crm.workbench.entity.ClueActivityRelation;

import java.util.List;

public interface ClueActivityRelationMapper {
    int deleteByPrimaryKey(String id);

    int insert(ClueActivityRelation row);

    int insertSelective(ClueActivityRelation row);

    ClueActivityRelation selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ClueActivityRelation row);

    int updateByPrimaryKey(ClueActivityRelation row);

    //批量插入线索市场活动关系
    int insertClueActivityRelationByList(List<ClueActivityRelation> list);

    //根据activityId和clueId删除关联信息
    int deleteClueActivityRelationByClueActivityId(ClueActivityRelation relation);

    //根据clueId查询线索和市场活动的关联关系
    List<ClueActivityRelation> selectClueActivityRelationByClueId(String clueId);

    //根据clueI删除线索和市场活动的关系
    int deleteClueActivityRelationByClueId(String clueId);
}
